using monotone convergence theorem